home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / dev / src / RBF_src.lha / rbf_demo.cpp next >
C/C++ Source or Header  |  1999-02-16  |  509b  |  41 lines

  1. #include <RBF.h>
  2.  
  3. void main(void)
  4. {
  5.    DimensionalParameters DP[] = {
  6.       {2,1,0,1},
  7.       {3,1,0,1},
  8.       {4,1,0,1}, };
  9.    RBF *R;
  10.    float x[3];
  11.    float i,j;
  12.  
  13.    R = NULL;
  14.  
  15.    R = new RBF(3, DP);
  16.    printf("OK\n");
  17.    if (!(R))
  18.       goto bailout;
  19.  
  20.    for (i=-2; i<2; i++) {
  21.       //for (j=-4; j<5; j++) {
  22.          printf("X:(%f,%f)\n",i,i);
  23.          x[0]=i;
  24.          x[1]=i;
  25.          x[2]=i;
  26.          R->Encode(x);
  27. //         R->ShowY(3, DP);
  28.       //}
  29.    }
  30.  
  31.  
  32.  
  33.  
  34. bailout:
  35.    if (R)
  36.       delete R;
  37.  
  38. }
  39.  
  40.  
  41.